package com.jinit.jia.boot.autoconfigure.web.servlet;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * ServletWebServerFactoryConfiguration
 *
 * @author JInit
 * @date 2021-08-06
 */
@Configuration(proxyBeanMethods = false)
public class ServletWebServerFactoryConfiguration {

    @Configuration(proxyBeanMethods = false)
    static class EmbeddedTomcat {

        @Bean
        TomcatServletWebServerFactory tomcatServletWebServerFactory() {
            // 仅模拟tomcat web服务工厂，实际应实现@Conditiona条件过滤
            TomcatServletWebServerFactory factory = new TomcatServletWebServerFactory();
            return factory;
        }

    }
}
